<template>
    <div class="container">
        <div class="top">
            <div class="t-left">学生动态</div>
            <div class="t-right">查看更多</div>
        </div>
        <div class="body">
            <div class="b-left">
                <div class="item">
                    <img src="../../assets/1.png" alt="">
                </div>
                <div class="text">
                    <span>迎新晚会·独唱</span>
                    <span>更多+</span>
                </div>
            </div>
            <div class="b-right">
                <div class="r-top">
                    <div class="item-left">
                        <img src="../../assets/1.png" alt="">
                        <span>迎新晚会现代舞</span>
                    </div>
                    <div class="item-right">
                        <img src="../../assets/1.png" alt="">
                        <span>迎新晚会现代舞</span>
                    </div>
                </div>
                <div class="r-bottom">
                    <div class="item-left">
                        <img src="../../assets/1.png" alt="">
                        <span>迎新晚会现代舞</span>
                    </div>
                    <div class="item-right">
                        <img src="../../assets/1.png" alt="">
                        <span>迎新晚会现代舞</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer">
            <ul>
                <li>友情链接</li>
                <li>中华人民共和国教育部</li>
                <li>山东教育厅</li>
                <li>山东省科学技术亭</li>
                <li>中国高职专教育网</li>
                <li>山东省科学技术厅</li>
                <li>中国高职专教育网</li>
            </ul>
        </div>
    </div>
</template>

<style scoped lang="scss">
.container {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    margin: 30px auto;
    @media (max-width: 468px) {
        width: 90%;
    }
    .top {
                    display: none;
                    margin: 20px 0;
                    width: 100%;
                    height: 40px;

                    @media (max-width: 475px) {
                        display: flex;
                    justify-content: space-between;
                    }

                    .t-left {
                        width: 10%;
                        color: #4587c1;
                        font-weight: 500;
                        font-size: 24px;
                        line-height: 40px;

                        @media (max-width: 475px) {
                            width: 30%;
                        }
                    }

                    .t-right {
                        width: 10%;
                        text-align: center;
                        line-height: 40px;

                        @media (max-width: 475px) {
                            width: 30%;
                        }
                    }
                }

    .body{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        position: relative;
        .b-left{
            width: 49%;
            @media (max-width: 475px) {
                width: 100%;
                height: 300px;
            }
            .item{
                border-radius: 10px;
                width: 100%;
                height: 100%;
                img{
                    width: 100%;
                height: 100%;

                    border-radius: 10px;
                }
            }
            .text{
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                position: absolute;
                border: 1px solid #fff;
                color: #fff;
                top: 5%;
                width: 47%;
                height: 270px;
                left: 1%;
                @media (max-width: 475px) {
                    width: 92%;
                    top: 4%;
                    left: 4%;
                }
                span{
                    display: block;
                    width: 100%;
                    font-size: 30px;
                    line-height: 135px;
                    height: 135px;
                    text-align: center;
                    &:nth-child(2){
                        width: 20%;
                        height: 50px;
                        font-size: 16px;
                        line-height: 50px;
                        margin: -100px  auto 0; 
                        background-color: #e69c19;
                        @media (max-width: 475px) {
                            width: 30%;
                        }
                    }
                }
            }
        }
        .b-right{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            width: 49%;
            @media (max-width: 475px) {
                width: 100%;
                margin: 20px 0;
            }
            .r-top{
                width: 100%;
                display: flex;
                justify-content: space-between;
                @media (max-width: 475px) {
                    margin: 10px 0;
                }
                .item-left{
                    border-radius: 10px;
                    width: 49%;
                    position: relative;
                    img{
                        width: 100%;
                        border-radius: 10px;
                    }
                    span{
                        position: absolute;
                        width: 100%;
                        bottom: 10px;
                        left: 0;
                        text-align: center;
                        color: #fff;
                        background-color: rgba(0, 0, 0, 0.3);
                        font-size: 12px;
                        line-height: 30px;
                    }
                }
                .item-right{
                    width: 49%;
                    border-radius: 10px;
                    position: relative;
                    img{
                        width: 100%;
                        border-radius: 10px;
                    }
                    span{
                        position: absolute;
                        width: 100%;
                        bottom: 10px;
                        left: 0;
                        text-align: center;
                        color: #fff;
                        background-color: rgba(0, 0, 0, 0.3);
                        font-size: 12px;
                        line-height: 30px;
                    }
                }
            }
            .r-bottom{
                width: 100%;
                display: flex;
                justify-content: space-between;
                .item-left{
                    width: 49%;
                    position: relative;
                    border-radius: 10px;
                    img{
                        width: 100%;
                        border-radius: 10px;
                    }
                    span{
                        position: absolute;
                        width: 100%;
                        bottom: 10px;
                        left: 0;
                        text-align: center;
                        color: #fff;
                        background-color: rgba(0, 0, 0, 0.3);
                        font-size: 12px;
                        line-height: 30px;
                    }
                }
                .item-right{
                    width: 49%;
                    position: relative;
                    border-radius: 10px;
                    img{
                        width: 100%;
                        border-radius: 10px;
                    }
                    span{
                        position: absolute;
                        width: 100%;
                        bottom: 10px;
                        left: 0;
                        text-align: center;
                        color: #fff;
                        background-color: rgba(0, 0, 0, 0.3);
                        font-size: 12px;
                        line-height: 30px;
                    }
                }
            }
        }
    }

    .footer {
        @media (max-width: 475px) {
            display: none;
        }
        margin: 30px 0;
        width: 100%;
        ul{
            display: flex;
            width: 86%;
            height: 30px;
            li{
                flex: 1;
                height: 30px;
                line-height: 30px;
                text-align: center;
                &:nth-child(1){
                    font-weight: 600;
                    font-size: 18px;
                }
                font-size: 12px;
            }
        }
    }
}
</style>